package binary;

public class HexDemo {
    public static void main(String[] args) {
        int a=0x47b98a;
        int b =0b0100_0111_1011_1001_1000_1010;
        System.out.println(Integer.toBinaryString(a));//10001111011100110001010,与b的二进制相等
        System.out.println(Integer.toHexString(b));//47b98a，
        System.out.println(a);//4700554
        System.out.println(b);//4700554


    }
}
